package com.nmsl.system.presc_temp.controller;

import com.nmsl.system.presc_temp.domain.PriscTempMedical;
import com.nmsl.system.presc_temp.service.IPrescTempMedicalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/system/temp_medical")
public class PriscTempMedicalController {

    @Autowired
    private IPrescTempMedicalService prescTempMedicalService;
    @PostMapping("/insert")
    public int insert(@RequestBody PriscTempMedical priscTempMedical){
        return prescTempMedicalService.insert(priscTempMedical);
    }

    @DeleteMapping("/delete")
    public int delete (Long prescTempId){
        return prescTempMedicalService.delete(prescTempId);
    }

}
